package code.c02_list.dlinkList;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/9/18 19:36
 * @package code.c02_list.classwork
 * @description 双链表泛型类·
 */

public class DLinkNode<E> {
    // 节点元素值
   public E data;
    //前驱节点指针
    public DLinkNode<E> prior;
    // 后继节点指针
    public DLinkNode<E> next;

    public DLinkNode() {
        prior = null;
        next = null;
    }

    public DLinkNode(E data) {
        this.data = data;
        prior = null;
        next = null;
    }
}
